package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {

    // 省略之前的内容...

    @RequestMapping("/loginUser")
    public String login() {
        return "login";
    }

     @RequestMapping("/common")
    public String hello(){return "common";}

    @RequestMapping("/admin")
    public String admin(){return "admin";}

    @RequestMapping("noPermission")
    public String noPermission(){return "noPermission";}
}